<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>发起投票</title>
<style type="text/css">

body{text-align: center;}
html,body{ width:90%; height:90%;text-align: center;margin-left:auto;margin-right:auto;}
div#container{width:100%;text-align: center;margin:0 auto;}
div#header {background-color:#99bbbb;}
div#menu {background-color:#ffff99;height:200px;width:40%;float:left;}
div#content {background-color:#EEEEEE;height:200px;width:60%;float:left;}
div#footer {background-color:#99bbbb;clear:both;text-align:center;}
div#bgimg{background-color:#99CCFF;clear:both;text-align:center;}

.button.green {
    background: rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #90dfa2, #84d494) repeat scroll 0 0;
    border: 1px solid #64c878;
    box-shadow: 0 1px 2px #b9ecc4 inset, 0 -1px 0 #6c9f76 inset, 0 -2px 3px #b9ecc4 inset;
}
</style>
<script type="text/javascript" src="/laydate-master/laydate.js"></script>
<script type="text/javascript" src="/laydate-master/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(function(){
    laydate({
        elem: '#starttime'
    });

    laydate({
        elem: '#endtime'
    });
});
    
        
</script>
</head>
<body>
    <div id="container">
        <div id="header">
            <h1>发起投票</h1>
        </div>
        <form enctype="multipart/form-data"  method="post" action='http://www.letian.com/vote.php'>
            <div>
                <label>选择类型：</label>
                <select name='type'>
                    <option value='0'>选择</option>
                    <option value='1'>两两pk</option>
                    <option value='2'>多人参与</option>
                </select>
            </div>
            <div>
                <label>投票名称：</label>
                <input type='text' value='' name='votename'> 
            </div>
            <div>
                <label>每天投票次数限制：</label>
                <select name='limitnum'>
                    <option value='0'>选择</option>
                    <option value='1'>1</option>
                    <option value='2'>2</option>
                    <option value='5'>5</option>
                </select>
            </div>
            <!-- <div id="test1" class="laydate-icon"></div>
            <script>laydate({
                elem: '#test1',
                format: 'YYYY/MM', // 分隔符可以任意定义，该例子表示只显示年月
                festival: true, //显示节日
                choose: function(datas){ //选择日期完毕的回调
                    alert('得到：'+datas);
                }});
            </script>
            <div> -->
                <!-- <input id="hello1">
                <span class="laydate-icon" onclick="laydate({elem: '#hello1'});"></span> -->
                <label>开始时间：</label>
                <input type='text' class="laydate-icon" name='starttime' id='starttime' />
                <label>结束时间：</label>
                <input type='text' class="laydate-icon" name='endtime' id='endtime'/>
            </div>
            <div>
                <label>上传图片1：</label>
                <input type='file' name='imgval1' value='上传'>
                描述：<input type='text' value='' name='describe1'>
            </div>
            <div>
                <label>上传图片2：</label>
                <input type='file' name='imgval2' value='上传'>
                描述：<input type='text' value='' name='describe2'>
            </div>
            <div><input type='submit' value='submit'></div>
        </form>
        <div id="footer">Copyright letian</div>
    </div>

</body>
</html>